
JavaArt Chapter 2. Executing Pixels using Drag-and-Drop

From the website:

  Killer Game Programming in Java
  http://fivedots.coe.psu.ac.th/~ad/jg

  Dr. Andrew Davison
  Dept. of Computer Engineering
  Prince of Songkla University
  Hat yai, Songkhla 90112, Thailand
  E-mail: ad@fivedots.coe.psu.ac.th


If you use this code, please mention my name, and include a link
to the website.

Thanks,
  Andrew

============================

This chapter follows on from 
   "JavaArt Chapter 1: On-the-Fly Dynamic Compilation and Execution"
   http://fivedots.coe.psu.ac.th/~ad/jg/javaArt1/


============================

This directory contains:

  * three java files
       ImageText.java, MakePNG.java, MakeTextFile.java
       (MakePNG.java, MakeTextFile.java use ImageText.java)

  * a subdirectory of examples, /examps


----------------------------
Compilation:

> javac *.java

Execution: 

> java MakePNG examps\Comparison.java
      ==> will create Comparison.png in examps\

> java MakePNG examps\Painter.java
      ==> will create Painter.png in examps\


> java MakeTextFile examps\Comparison.png
      ==> will create Comparison.txt in examps\    // NOTE: the extension is ".txt"

> java MakeTextFile examps\Painter.png
      ==> will create Painter.txt in examps\ 

> java MakeTextFile examps\notExecutable.png
      ==> will create notExecutable.txt in examps\, 
          which will consist of a very long line of spaces
          since it wasn't originally a text file

---------
Last updated: 13th February 2009

